<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Reply.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<table border="2">
		<tr>
			<th colspan="3">回复帖子</th>
		</tr>
		<tr>
			<th colspan="3" align="right" style="font-size: 14px"><a href="${pageContext.request.contextPath}/add.html?invid=${replyLists.get(0).invid}">添加回复</a>      <a href="${pageContext.request.contextPath}/invitationlist.html">返回帖子列表</a></th>
		</tr>
		<tr style="background-color: blue;">

			<th>回复内容</th>
			<th>回复昵称</th>
			<th>发布时间</th>
		</tr>
		<c:forEach var="replyList" items="${replyLists}" varStatus="i">
			<tr
				<c:if test="${i.index%2==1} ">style="background-color: green;"</c:if>>
				<td>${replyList.content }</td>
				<td>${replyList.author }</td>
				<td>${replyList.createdate }</td>
			</tr>
		</c:forEach>
	</table>
  </body>
</html>
